package com.lhy.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：罗昊宇
 * @Package：com.lhy.controller
 * @Project：shiro-framwork
 * @name：UserController
 * @Date：2024/5/9 0009  21:57
 * @Filename：UserController
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("delete")
    @RequiresPermissions(value = "user:delete")
    public String delete(){
        return "用户删除--user:delete";
    }
    @GetMapping("update")
    @RequiresPermissions(value = "user:update")
    public String update(){
        return "用户修改--update:list";
    }
    @GetMapping("add")
    @RequiresPermissions(value = "user:insert")
    public String add(){
        return "用户添加--user:add";
    }
    @GetMapping("export")
    @RequiresPermissions(value = "user:export")
    public String export(){
        return "用户导出--user:export";
    }
    @GetMapping("list")
    @RequiresPermissions(value = "user:query")
    public String list(){
        return "用户查询--user:list";
    }
}
